-- GENERATED SPELL FOR [Young Sporebat] --


function spell0_20387(pUnit, Event) --@Energizing Spores,n/a--
pUnit:FullCastSpellOnTarget(35336,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20387', 552, 1)
end

function Sorts_20387(pUnit, Event)
local choix_sorts_20387 = math.random(0, 0)
if choix_sorts_20387 == 0 then
pUnit:RegisterEvent('spell0_20387', 1, 1)
end
end

function mob20387_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20387', math.random(1500, 3000), 1)
end

function mob20387_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20387_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20387_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20387, 1, 'mob20387_Action')
RegisterUnitEvent(20387, 2, 'mob20387_Leave')
RegisterUnitEvent(20387, 3, 'mob20387_Kill')
RegisterUnitEvent(20387, 4, 'mob20387_Die')
